<!-- Begin page content -->
<div class="container">
  <h3>添加分类</h3>
  <form class="form-horizontal" method="post" action="__ACTION__">
    <div class="form-group">
      <label for="inputCatename" class="col-sm-2 control-label">分类名称</label>
      <div class="col-sm-10">
        <input type="text" class="form-control" id="inputCatename" name="name" placeholder="Name">
      </div>
    </div>
    <div class="form-group">
      <label for="inputPid" class="col-sm-2 control-label">上级分类</label>
      <div class="col-sm-10">
        <select class="form-control" id="inputPid" name="pid">
          <option value="0">作为顶级</option>
          <volist name="list" id="v">
            <php>$selected = $v['id'] == $id ? ' selected' : '';</php>
            <option value="{$v.id}"{$selected}>{$v.html}{$v.name}</option>
          </volist>
        </select>
      </div>
    </div>
    <div class="form-group">
      <label for="inputSort" class="col-sm-2 control-label">排序</label>
      <div class="col-sm-10">
        <input type="text" class="form-control" id="inputSort" name="sort" placeholder="Sort">
      </div>
    </div>
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-10">
        <button type="submit" class="btn btn-lg btn-primary">保存</button>
      </div>
    </div>
  </form>
</div>
